﻿namespace WinForms.ControlList.Company
{
    using Bll.Company;
    using Bll.Systems;
    using Library;
    using Microsoft.Office.Interop.Excel;
    using Model.Company;
    using Model.Systems;
    using PublicStaticClass;
    using PublicStaticClass.UIControl;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Threading;
    using System.Windows.Forms;
    using WinForms;
    using WinForms.Properties;

    public class FrmCompayAccountDetailsList : WindowBase
    {
        private System.Windows.Forms.Button btn_QueReng;
        private System.Windows.Forms.Button btnAddNew;
        private System.Windows.Forms.Button btnChongAll;
        private System.Windows.Forms.Button btnDelele;
        private System.Windows.Forms.Button btnExcel;
        private System.Windows.Forms.Button btnSearch;
        private System.Windows.Forms.Button btnSearchHidden;
        private System.Windows.Forms.Button btnSelectAll;
        private DataGridViewTextBoxColumn BuildMoney;
        private string[] checkPopIsUse = new string[4];
        private string[] CheckPopName = new string[] { "NewAccountDetails", "EditAccountDetails", "DeleteAccountDetails", "CheckAccountDetails" };
        private DataGridViewCheckBoxColumn chk_chkItem;
        private IContainer components = null;
        private DataGridViewTextBoxColumn CreateMan;
        private DataGridViewTextBoxColumn CreateTime;
        private DataGridView DataGridList;
        private DateTimePicker dataTime_BeginTime;
        private DateTimePicker dateTime_EndTime;
        private DataGridViewTextBoxColumn DetailsId;
        private DataGridViewTextBoxColumn DetailsType;
        private DataGridViewTextBoxColumn dgBuildMoney;
        private DataGridViewTextBoxColumn dgChainNum;
        private DataGridViewTextBoxColumn dgCheckMan;
        private DataGridViewTextBoxColumn dgCheckTime;
        private DataGridViewTextBoxColumn dgCreateMan;
        private DataGridViewTextBoxColumn dgCreateTime;
        private DataGridViewTextBoxColumn dgDetailsId;
        private DataGridViewTextBoxColumn dgDetailsType;
        private DataGridViewTextBoxColumn dgInputDetailsSource;
        private DataGridViewTextBoxColumn dgIsCheck;
        private DataGridViewTextBoxColumn dgNotesNum;
        private DataGridViewTextBoxColumn dgOutDetailsSource;
        private DataGridViewTextBoxColumn dgRemark;
        private ComboBox drp_CompanyAccount;
        private ComboBox drp_DetailsType;
        private DataGridViewImageColumn imgDelete;
        private DataGridViewImageColumn imgEdit;
        private DataGridViewTextBoxColumn InputDetailsSource;
        private DataGridViewTextBoxColumn IsCheck;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.Label label6;
        private System.Windows.Forms.Label lbl_GuestName;
        private System.Windows.Forms.Label lblWhere;
        private Navigator navigator_Page;
        private DataGridViewTextBoxColumn NotesNum;
        private Panel pan_AllPanel;
        private Panel pan_AllPlanes;
        private Panel pan_Bottoms;
        private Panel pan_Dock;
        private Panel pan_DockBottom;
        private Panel pan_DockLeft;
        private Panel pan_DockRight;
        private Panel pan_Lefts;
        private Panel pan_Rights;
        private Panel pan_Top;
        private Panel pan_TopJianGe;
        private Panel pan_TopLeft;
        private Panel pan_TopRight;
        private Panel pan_ZhongJian;
        private Panel pane_TopT;
        private Panel panel1;
        private Panel panel10;
        private Panel panel11;
        private Panel panel12;
        private Panel panel13;
        private Panel panel14;
        private Panel panel15;
        private Panel panel16;
        private Panel panel17;
        private Panel panel18;
        private Panel panel19;
        private Panel panel2;
        private Panel panel20;
        private Panel panel21;
        private Panel panel22;
        private Panel panel23;
        private Panel panel24;
        private Panel panel25;
        private Panel panel26;
        private Panel panel3;
        private Panel panel4;
        private Panel panel5;
        private Panel panel6;
        private Panel panel7;
        private Panel panel8;
        private Panel panel9;
        private PictureBox pic_Help;
        private Panel PlSearch;
        private SaveFileDialog saveFileDialog;
        private System.Windows.Forms.TextBox txt_MaxMoney;
        private System.Windows.Forms.TextBox txt_MinMoney;

        public FrmCompayAccountDetailsList()
        {
            this.InitializeComponent();
            base.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            base.SetStyle(ControlStyles.UserPaint, true);
            base.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            this.drpDataLoad();
            this.dataTime_BeginTime.Value = DateTime.Now.AddDays(-30.0);
            this.dateTime_EndTime.Value = DateTime.Now;
        }

        public void BeginThread(object dTable)
        {
            System.Data.DataTable dt = (System.Data.DataTable) dTable;
            BuildNewExcel.outPutExcel(this.DataGridList, dt, this.saveFileDialog.FileName);
            if (MessageBox.Show("帐户操作表生成成功,是否现在就打开?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk) == DialogResult.OK)
            {
                Microsoft.Office.Interop.Excel.Application application = new ApplicationClass();
                Workbook workbook = application.Application.Workbooks.Add(this.saveFileDialog.FileName);
                application.Visible = true;
            }
        }

        private void btn_QueReng_Click(object sender, EventArgs e)
        {
            string[] strArray = this.GetSelectId(0).Split(new char[] { ',' });
            foreach (string str in strArray)
            {
                if (str != "")
                {
                    CompayAccountDetailsEnt model = CompayAccountDetailsBll.GetModel(int.Parse(str));
                    if ((model != null) && (model.IsCheck != 1))
                    {
                        CompayAccountEnt ent2 = CompayAccountBll.GetModel(model.InputDetailsSource);
                        if (ent2 != null)
                        {
                            if (model.DetailsType.ToString() == "1")
                            {
                                ent2.AccountMoney -= model.BuildMoney;
                                CompayAccountBll.Update(ent2);
                            }
                            else if (model.DetailsType.ToString() == "0")
                            {
                                ent2.AccountMoney += model.BuildMoney;
                                CompayAccountBll.Update(ent2);
                            }
                        }
                        UserEnt loginUser = PublicAppliction.LoginUser;
                        model.CheckMan = loginUser.UserId;
                        model.CheckTime = DateTime.Now;
                        model.IsCheck = 1;
                        CompayAccountDetailsBll.Check(model);
                    }
                }
            }
            this.DatePageReadLoad();
        }

        private void btnAddNew_Click(object sender, EventArgs e)
        {
            FrmCompayAccountDetailsAdd add = new FrmCompayAccountDetailsAdd();
            if (DialogResult.OK == add.ShowDialog())
            {
                this.DatePageReadLoad();
            }
            add.Dispose();
        }

        private void btnChongAll_Click(object sender, EventArgs e)
        {
            for (int i = 0; i < this.DataGridList.Rows.Count; i++)
            {
                this.DataGridList.Rows[i].Cells[0].Value = "False";
            }
        }

        private void btnDelele_Click(object sender, EventArgs e)
        {
            try
            {
                string str = "";
                for (int i = 0; i < this.DataGridList.Rows.Count; i++)
                {
                    if (this.DataGridList.Rows[i].Cells[0].FormattedValue.ToString() == "True")
                    {
                        CompayAccountDetailsBll.Delete(int.Parse(this.DataGridList.Rows[i].Cells[1].Value.ToString()));
                        str = str + this.DataGridList.Rows[i].Cells[1].Value + ",";
                    }
                }
                this.DatePageReadLoad();
                WorkLogBll.AddNewLog("删除帐户明细信息 编号:" + str, "", PublicAppliction.LoginUser);
            }
            catch (Exception exception)
            {
                ErrorsBll.NewException(exception, PublicAppliction.LoginUser);
            }
        }

        private void btnExcel_Click(object sender, EventArgs e)
        {
            if (this.saveFileDialog.ShowDialog() == DialogResult.OK)
            {
                System.Data.DataTable list = CompayAccountDetailsBll.GetList(this.lblWhere.Text);
                this.DataZhuanHuan(ref list);
                ParameterizedThreadStart start = new ParameterizedThreadStart(this.BeginThread);
                Thread thread = new Thread(start);
                object parameter = list;
                thread.Start(parameter);
            }
        }

        private void btnSearch_Click(object sender, EventArgs e)
        {
            Exception exception;
            object text;
            this.lblWhere.Text = " where 1=1 ";
            if (((ComboxItem) this.drp_CompanyAccount.SelectedItem).Value.ToString() != "")
            {
                this.lblWhere.Text = this.lblWhere.Text + " and InputDetailsSource=" + ((ComboxItem) this.drp_CompanyAccount.SelectedItem).Value.ToString();
            }
            if (((ComboxItem) this.drp_DetailsType.SelectedItem).Value.ToString() != "")
            {
                this.lblWhere.Text = this.lblWhere.Text + " and DetailsType=" + ((ComboxItem) this.drp_DetailsType.SelectedItem).Value.ToString();
            }
            if (this.txt_MinMoney.Text.Trim() != "")
            {
                try
                {
                    text = this.lblWhere.Text;
                    this.lblWhere.Text = string.Concat(new object[] { text, " and BuildMoney>='", decimal.Parse(this.txt_MinMoney.Text), "'" });
                }
                catch (Exception exception1)
                {
                    exception = exception1;
                    MessageBox.Show("请输入正确数字", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                    this.txt_MinMoney.Focus();
                    return;
                }
            }
            if (this.txt_MaxMoney.Text.Trim() != "")
            {
                try
                {
                    text = this.lblWhere.Text;
                    this.lblWhere.Text = string.Concat(new object[] { text, " and BuildMoney<='", decimal.Parse(this.txt_MaxMoney.Text), "'" });
                }
                catch (Exception exception2)
                {
                    exception = exception2;
                    MessageBox.Show("请输入正确数字", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                    this.txt_MaxMoney.Focus();
                    return;
                }
            }
            try
            {
                string str = this.lblWhere.Text;
                this.lblWhere.Text = str + " and CreateTime between #" + this.dataTime_BeginTime.Value.ToString("yyyy-MM-dd 00:00:00") + "# and  #" + this.dateTime_EndTime.Value.ToString("yyyy-MM-dd 23:59:59") + "#";
            }
            catch (Exception exception3)
            {
                exception = exception3;
            }
            this.DatePageReadLoad();
        }

        private void btnSearchHidden_Click(object sender, EventArgs e)
        {
            if (this.PlSearch.Visible)
            {
                this.btnSearchHidden.Text = "显示查询";
                this.PlSearch.Visible = false;
            }
            else
            {
                this.btnSearchHidden.Text = "隐藏查询";
                this.PlSearch.Visible = true;
            }
        }

        private void btnSelectAll_Click(object sender, EventArgs e)
        {
            for (int i = 0; i < this.DataGridList.Rows.Count; i++)
            {
                if (this.DataGridList.Rows[i].Cells[0].FormattedValue.ToString() == "True")
                {
                    this.DataGridList.Rows[i].Cells[0].Value = "False";
                }
                else
                {
                    this.DataGridList.Rows[i].Cells[0].Value = "True";
                }
            }
        }

        protected string CzLx(object obj)
        {
            if (obj.ToString() == "1")
            {
                return "账务支出";
            }
            if (obj.ToString() == "0")
            {
                return "其他收入";
            }
            if (obj.ToString() == "2")
            {
                return "采购付款";
            }
            if (obj.ToString() == "3")
            {
                return "采购退货收款";
            }
            if (obj.ToString() == "4")
            {
                return "销售收款";
            }
            if (obj.ToString() == "5")
            {
                return "销售退货付款";
            }
            return "";
        }

        protected void DataGrid_bind()
        {
            try
            {
                System.Data.DataTable dt = new System.Data.DataTable();
                int pageCurrent = this.navigator_Page.PageCurrent;
                if (this.lblWhere.Text != "")
                {
                    dt = CompayAccountDetailsBll.GetPageList(PublicAppliction.PageCount, pageCurrent, this.lblWhere.Text);
                }
                else
                {
                    dt = CompayAccountDetailsBll.GetPageList(PublicAppliction.PageCount, pageCurrent, "");
                }
                int num2 = GetTableColCount.ReturnTableColCount("Systems", "T_CompayAccountDetails", this.lblWhere.Text);
                this.DataGridList.AutoGenerateColumns = false;
                this.DataZhuanHuan(ref dt);
                this.DataGridList.DataSource = dt;
                this.navigator_Page.DataSource = dt;
                this.navigator_Page.RowCount = num2;
            }
            catch (Exception exception)
            {
                throw exception;
            }
        }

        private void DataGridList_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex != -1)
            {
                if (e.ColumnIndex == this.DataGridList.Columns["imgEdit"].Index)
                {
                    FrmCompayAccountDetailsEdit edit = new FrmCompayAccountDetailsEdit(int.Parse(this.DataGridList.Rows[e.RowIndex].Cells[1].Value.ToString()));
                    if (DialogResult.OK == edit.ShowDialog())
                    {
                        this.DatePageReadLoad();
                    }
                    edit.Dispose();
                }
                else if (e.ColumnIndex == this.DataGridList.Columns["imgDelete"].Index)
                {
                    string s = this.DataGridList.Rows[e.RowIndex].Cells[1].Value.ToString();
                    if (DialogResult.OK == MessageBox.Show("您确定要删除这条记录?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk))
                    {
                        CompayAccountDetailsBll.Delete(int.Parse(s));
                        WorkLogBll.AddNewLog("删除帐户明细信息 编号:" + s, "", PublicAppliction.LoginUser);
                    }
                    this.DatePageReadLoad();
                }
            }
        }

        private void DataGridList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
        }

        protected void DataZhuanHuan(ref System.Data.DataTable dt)
        {
            dt.Columns["DetailsId"].ColumnName = "DetailsId1";
            dt.Columns["DetailsType"].ColumnName = "DetailsType1";
            dt.Columns["InputDetailsSource"].ColumnName = "InputDetailsSource1";
            dt.Columns["CreateMan"].ColumnName = "CreateMan1";
            dt.Columns["IsCheck"].ColumnName = "IsCheck1";
            dt.Columns.Add("DetailsId");
            dt.Columns.Add("DetailsType");
            dt.Columns.Add("InputDetailsSource");
            dt.Columns.Add("CreateMan");
            dt.Columns.Add("IsCheck");
            int num = 1;
            foreach (DataRow row in dt.Rows)
            {
                row["DetailsId"] = num.ToString();
                row["DetailsType"] = this.CzLx(row["DetailsType1"].ToString());
                try
                {
                    DataRow[] rowArray = PublicAppliction.CompanyAccountDt.Select("AccountId=" + row["InputDetailsSource1"].ToString() + "");
                    if (rowArray.Length > 0)
                    {
                        row["InputDetailsSource"] = rowArray[0]["AccountName"].ToString();
                    }
                }
                catch (Exception)
                {
                    row["InputDetailsSource"] = "无";
                }
                DataRow[] rowArray2 = PublicAppliction.UserDt.Select("userid=" + row["CreateMan1"].ToString() + "");
                if (rowArray2.Length > 0)
                {
                    row["CreateMan"] = rowArray2[0]["UserName"].ToString();
                }
                row["BuildMoney"] = decimal.Parse(row["BuildMoney"].ToString()).ToString("F2");
                if (row["IsCheck1"].ToString() == "1")
                {
                    row["IsCheck"] = "已审核!";
                }
                else
                {
                    row["IsCheck"] = "未审核!";
                }
                num++;
            }
            dt.Columns.Remove("DetailsId1");
            dt.Columns.Remove("DetailsType1");
            dt.Columns.Remove("InputDetailsSource1");
            dt.Columns.Remove("CreateMan1");
            dt.Columns.Remove("IsCheck1");
        }

        private void DatePageReadLoad()
        {
            this.DataGrid_bind();
            this.InitPage();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void drpDataLoad()
        {
            this.drp_CompanyAccount.DisplayMember = "Name";
            this.drp_CompanyAccount.ValueMember = "Value";
            UserEnt loginUser = PublicAppliction.LoginUser;
            this.drp_CompanyAccount.Items.Clear();
            this.drp_CompanyAccount.Items.Add(new ComboxItem("---请选择---", ""));
            DataRow[] rowArray = PublicAppliction.CompanyAccountDt.Select("ChainNum=" + loginUser.ChainNum);
            foreach (DataRow row in rowArray)
            {
                this.drp_CompanyAccount.Items.Add(new ComboxItem(row["AccountName"].ToString(), row["AccountId"].ToString()));
            }
            this.drp_CompanyAccount.SelectedIndex = 0;
            this.drp_DetailsType.Items.Clear();
            this.drp_DetailsType.DisplayMember = "Name";
            this.drp_DetailsType.ValueMember = "Value";
            this.drp_DetailsType.Items.Add(new ComboxItem("---请选择---", ""));
            this.drp_DetailsType.Items.Add(new ComboxItem("账务支出", "1"));
            this.drp_DetailsType.Items.Add(new ComboxItem("其他收入", "0"));
            this.drp_DetailsType.Items.Add(new ComboxItem("采购付款", "2"));
            this.drp_DetailsType.Items.Add(new ComboxItem("采购退货收款", "3"));
            this.drp_DetailsType.Items.Add(new ComboxItem("销售收款", "4"));
            this.drp_DetailsType.Items.Add(new ComboxItem("销售退货付款", "5"));
            this.drp_DetailsType.SelectedIndex = 0;
        }

        private void FrmCompayAccountDetailsList_Load(object sender, EventArgs e)
        {
            this.DataGrid_bind();
            this.InitPage();
            base.CheckPopedom(this, this.DataGridList, this.CheckPopName, this.checkPopIsUse);
            if ((ConfigBll.GetModel(1).IsUseMeUse != 1) && (this.checkPopIsUse[3] != "1"))
            {
                this.panel4.Visible = false;
            }
            if (PublicAppliction.configEnt.IsUseHelp == 1)
            {
                this.pic_Help.Visible = true;
            }
            else
            {
                this.pic_Help.Visible = false;
            }
            this.DataGridList.ClearSelection();
        }

        private string GetSelectId(int types)
        {
            string str;
            int num;
            if (types == 0)
            {
                str = "";
                for (num = 0; num < this.DataGridList.Rows.Count; num++)
                {
                    if (this.DataGridList.Rows[num].Cells[0].FormattedValue.ToString() == "True")
                    {
                        str = str + this.DataGridList.Rows[num].Cells[1].Value + ",";
                    }
                }
                return str;
            }
            int num2 = 0;
            str = "";
            for (num = 0; num < this.DataGridList.Rows.Count; num++)
            {
                if (this.DataGridList.Rows[num].Cells[0].FormattedValue.ToString() == "True")
                {
                    str = str + this.DataGridList.Rows[num].Cells[1].Value + ",";
                    num2++;
                }
            }
            if (num2 > 1)
            {
                MessageBox.Show("只能选择一项", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                return "";
            }
            return str.Replace(",", "");
        }

        private void InitializeComponent()
        {
            DataGridViewCellStyle style = new DataGridViewCellStyle();
            DataGridViewCellStyle style2 = new DataGridViewCellStyle();
            DataGridViewCellStyle style3 = new DataGridViewCellStyle();
            DataGridViewCellStyle style4 = new DataGridViewCellStyle();
            DataGridViewCellStyle style5 = new DataGridViewCellStyle();
            DataGridViewCellStyle style6 = new DataGridViewCellStyle();
            DataGridViewCellStyle style7 = new DataGridViewCellStyle();
            DataGridViewCellStyle style8 = new DataGridViewCellStyle();
            DataGridViewCellStyle style9 = new DataGridViewCellStyle();
            DataGridViewCellStyle style10 = new DataGridViewCellStyle();
            DataGridViewCellStyle style11 = new DataGridViewCellStyle();
            DataGridViewCellStyle style12 = new DataGridViewCellStyle();
            DataGridViewCellStyle style13 = new DataGridViewCellStyle();
            this.panel1 = new Panel();
            this.panel26 = new Panel();
            this.pic_Help = new PictureBox();
            this.panel24 = new Panel();
            this.btnExcel = new System.Windows.Forms.Button();
            this.panel7 = new Panel();
            this.btnSearch = new System.Windows.Forms.Button();
            this.panel6 = new Panel();
            this.btnSearchHidden = new System.Windows.Forms.Button();
            this.panel5 = new Panel();
            this.btnAddNew = new System.Windows.Forms.Button();
            this.panel14 = new Panel();
            this.btnSelectAll = new System.Windows.Forms.Button();
            this.panel15 = new Panel();
            this.btnChongAll = new System.Windows.Forms.Button();
            this.panel25 = new Panel();
            this.btnDelele = new System.Windows.Forms.Button();
            this.panel4 = new Panel();
            this.btn_QueReng = new System.Windows.Forms.Button();
            this.panel3 = new Panel();
            this.panel2 = new Panel();
            this.pan_Dock = new Panel();
            this.pan_AllPanel = new Panel();
            this.pan_AllPlanes = new Panel();
            this.DataGridList = new DataGridView();
            this.chk_chkItem = new DataGridViewCheckBoxColumn();
            this.DetailsId = new DataGridViewTextBoxColumn();
            this.DetailsType = new DataGridViewTextBoxColumn();
            this.InputDetailsSource = new DataGridViewTextBoxColumn();
            this.CreateMan = new DataGridViewTextBoxColumn();
            this.NotesNum = new DataGridViewTextBoxColumn();
            this.CreateTime = new DataGridViewTextBoxColumn();
            this.BuildMoney = new DataGridViewTextBoxColumn();
            this.IsCheck = new DataGridViewTextBoxColumn();
            this.imgEdit = new DataGridViewImageColumn();
            this.imgDelete = new DataGridViewImageColumn();
            this.PlSearch = new Panel();
            this.panel20 = new Panel();
            this.dateTime_EndTime = new DateTimePicker();
            this.dataTime_BeginTime = new DateTimePicker();
            this.label5 = new System.Windows.Forms.Label();
            this.panel21 = new Panel();
            this.label6 = new System.Windows.Forms.Label();
            this.panel18 = new Panel();
            this.txt_MaxMoney = new System.Windows.Forms.TextBox();
            this.label4 = new System.Windows.Forms.Label();
            this.txt_MinMoney = new System.Windows.Forms.TextBox();
            this.panel19 = new Panel();
            this.label3 = new System.Windows.Forms.Label();
            this.panel16 = new Panel();
            this.drp_CompanyAccount = new ComboBox();
            this.panel17 = new Panel();
            this.label2 = new System.Windows.Forms.Label();
            this.panel22 = new Panel();
            this.drp_DetailsType = new ComboBox();
            this.panel23 = new Panel();
            this.lbl_GuestName = new System.Windows.Forms.Label();
            this.panel13 = new Panel();
            this.panel10 = new Panel();
            this.panel12 = new Panel();
            this.lblWhere = new System.Windows.Forms.Label();
            this.panel11 = new Panel();
            this.navigator_Page = new Navigator();
            this.panel9 = new Panel();
            this.panel8 = new Panel();
            this.pan_TopJianGe = new Panel();
            this.pan_Rights = new Panel();
            this.pan_Lefts = new Panel();
            this.pan_Bottoms = new Panel();
            this.pane_TopT = new Panel();
            this.pan_DockBottom = new Panel();
            this.pan_DockRight = new Panel();
            this.pan_DockLeft = new Panel();
            this.label1 = new System.Windows.Forms.Label();
            this.pan_Top = new Panel();
            this.pan_ZhongJian = new Panel();
            this.pan_TopRight = new Panel();
            this.pan_TopLeft = new Panel();
            this.saveFileDialog = new SaveFileDialog();
            this.panel1.SuspendLayout();
            this.panel26.SuspendLayout();
            ((ISupportInitialize) this.pic_Help).BeginInit();
            this.panel24.SuspendLayout();
            this.panel7.SuspendLayout();
            this.panel6.SuspendLayout();
            this.panel5.SuspendLayout();
            this.panel14.SuspendLayout();
            this.panel15.SuspendLayout();
            this.panel25.SuspendLayout();
            this.panel4.SuspendLayout();
            this.pan_Dock.SuspendLayout();
            this.pan_AllPanel.SuspendLayout();
            this.pan_AllPlanes.SuspendLayout();
            ((ISupportInitialize) this.DataGridList).BeginInit();
            this.PlSearch.SuspendLayout();
            this.panel20.SuspendLayout();
            this.panel21.SuspendLayout();
            this.panel18.SuspendLayout();
            this.panel19.SuspendLayout();
            this.panel16.SuspendLayout();
            this.panel17.SuspendLayout();
            this.panel22.SuspendLayout();
            this.panel23.SuspendLayout();
            this.panel10.SuspendLayout();
            this.panel12.SuspendLayout();
            this.panel11.SuspendLayout();
            this.pan_Top.SuspendLayout();
            this.pan_ZhongJian.SuspendLayout();
            base.SuspendLayout();
            this.panel1.BackColor = Color.FromArgb(0xf6, 0xf6, 0xf6);
            this.panel1.Controls.Add(this.panel26);
            this.panel1.Controls.Add(this.panel24);
            this.panel1.Controls.Add(this.panel7);
            this.panel1.Controls.Add(this.panel6);
            this.panel1.Controls.Add(this.panel5);
            this.panel1.Controls.Add(this.panel14);
            this.panel1.Controls.Add(this.panel15);
            this.panel1.Controls.Add(this.panel25);
            this.panel1.Controls.Add(this.panel4);
            this.panel1.Controls.Add(this.panel3);
            this.panel1.Controls.Add(this.panel2);
            this.panel1.Dock = DockStyle.Top;
            this.panel1.Location = new System.Drawing.Point(0, 8);
            this.panel1.Name = "panel1";
            this.panel1.Size = new Size(0x3d2, 0x1a);
            this.panel1.TabIndex = 1;
            this.panel26.Controls.Add(this.pic_Help);
            this.panel26.Dock = DockStyle.Right;
            this.panel26.Location = new System.Drawing.Point(210, 3);
            this.panel26.Name = "panel26";
            this.panel26.Size = new Size(0x16, 20);
            this.panel26.TabIndex = 0x18;
            this.pic_Help.BackgroundImage = Resources.question11;
            this.pic_Help.Cursor = Cursors.Hand;
            this.pic_Help.Location = new System.Drawing.Point(3, 2);
            this.pic_Help.Name = "pic_Help";
            this.pic_Help.Size = new Size(0x10, 0x10);
            this.pic_Help.TabIndex = 8;
            this.pic_Help.TabStop = false;
            this.pic_Help.Click += new EventHandler(this.pic_Help_Click);
            this.panel24.Controls.Add(this.btnExcel);
            this.panel24.Dock = DockStyle.Right;
            this.panel24.Location = new System.Drawing.Point(0xe8, 3);
            this.panel24.Name = "panel24";
            this.panel24.Size = new Size(0x7b, 20);
            this.panel24.TabIndex = 0x17;
            this.btnExcel.Dock = DockStyle.Right;
            this.btnExcel.Location = new System.Drawing.Point(0x10, 0);
            this.btnExcel.Name = "btnExcel";
            this.btnExcel.Size = new Size(0x6b, 20);
            this.btnExcel.TabIndex = 1;
            this.btnExcel.Text = "导出成Excel文件";
            this.btnExcel.UseVisualStyleBackColor = true;
            this.btnExcel.Click += new EventHandler(this.btnExcel_Click);
            this.panel7.Controls.Add(this.btnSearch);
            this.panel7.Dock = DockStyle.Right;
            this.panel7.Location = new System.Drawing.Point(0x163, 3);
            this.panel7.Name = "panel7";
            this.panel7.Size = new Size(0x59, 20);
            this.panel7.TabIndex = 0x16;
            this.btnSearch.Dock = DockStyle.Right;
            this.btnSearch.Location = new System.Drawing.Point(14, 0);
            this.btnSearch.Name = "btnSearch";
            this.btnSearch.Size = new Size(0x4b, 20);
            this.btnSearch.TabIndex = 1;
            this.btnSearch.Text = "查 询";
            this.btnSearch.UseVisualStyleBackColor = true;
            this.btnSearch.Click += new EventHandler(this.btnSearch_Click);
            this.panel6.Controls.Add(this.btnSearchHidden);
            this.panel6.Dock = DockStyle.Right;
            this.panel6.Location = new System.Drawing.Point(0x1bc, 3);
            this.panel6.Name = "panel6";
            this.panel6.Size = new Size(0x59, 20);
            this.panel6.TabIndex = 0x15;
            this.btnSearchHidden.Dock = DockStyle.Right;
            this.btnSearchHidden.Location = new System.Drawing.Point(14, 0);
            this.btnSearchHidden.Name = "btnSearchHidden";
            this.btnSearchHidden.Size = new Size(0x4b, 20);
            this.btnSearchHidden.TabIndex = 0;
            this.btnSearchHidden.Text = "显示查询";
            this.btnSearchHidden.UseVisualStyleBackColor = true;
            this.btnSearchHidden.Click += new EventHandler(this.btnSearchHidden_Click);
            this.panel5.Controls.Add(this.btnAddNew);
            this.panel5.Dock = DockStyle.Right;
            this.panel5.Location = new System.Drawing.Point(0x215, 3);
            this.panel5.Name = "panel5";
            this.panel5.Size = new Size(0x59, 20);
            this.panel5.TabIndex = 20;
            this.btnAddNew.Dock = DockStyle.Right;
            this.btnAddNew.Location = new System.Drawing.Point(14, 0);
            this.btnAddNew.Name = "btnAddNew";
            this.btnAddNew.Size = new Size(0x4b, 20);
            this.btnAddNew.TabIndex = 0;
            this.btnAddNew.Text = "新 增";
            this.btnAddNew.UseVisualStyleBackColor = true;
            this.btnAddNew.Click += new EventHandler(this.btnAddNew_Click);
            this.panel14.Controls.Add(this.btnSelectAll);
            this.panel14.Dock = DockStyle.Right;
            this.panel14.Location = new System.Drawing.Point(0x26e, 3);
            this.panel14.Name = "panel14";
            this.panel14.Size = new Size(0x59, 20);
            this.panel14.TabIndex = 0x13;
            this.btnSelectAll.Dock = DockStyle.Right;
            this.btnSelectAll.Location = new System.Drawing.Point(14, 0);
            this.btnSelectAll.Name = "btnSelectAll";
            this.btnSelectAll.Size = new Size(0x4b, 20);
            this.btnSelectAll.TabIndex = 0;
            this.btnSelectAll.Text = "全 选";
            this.btnSelectAll.UseVisualStyleBackColor = true;
            this.btnSelectAll.Click += new EventHandler(this.btnSelectAll_Click);
            this.panel15.Controls.Add(this.btnChongAll);
            this.panel15.Dock = DockStyle.Right;
            this.panel15.Location = new System.Drawing.Point(0x2c7, 3);
            this.panel15.Name = "panel15";
            this.panel15.Size = new Size(0x59, 20);
            this.panel15.TabIndex = 0x12;
            this.btnChongAll.Dock = DockStyle.Right;
            this.btnChongAll.Location = new System.Drawing.Point(14, 0);
            this.btnChongAll.Name = "btnChongAll";
            this.btnChongAll.Size = new Size(0x4b, 20);
            this.btnChongAll.TabIndex = 0;
            this.btnChongAll.Text = "重 选";
            this.btnChongAll.UseVisualStyleBackColor = true;
            this.btnChongAll.Click += new EventHandler(this.btnChongAll_Click);
            this.panel25.Controls.Add(this.btnDelele);
            this.panel25.Dock = DockStyle.Right;
            this.panel25.Location = new System.Drawing.Point(800, 3);
            this.panel25.Name = "panel25";
            this.panel25.Size = new Size(0x59, 20);
            this.panel25.TabIndex = 0x11;
            this.btnDelele.Dock = DockStyle.Right;
            this.btnDelele.Location = new System.Drawing.Point(14, 0);
            this.btnDelele.Name = "btnDelele";
            this.btnDelele.Size = new Size(0x4b, 20);
            this.btnDelele.TabIndex = 0;
            this.btnDelele.Text = "删 除";
            this.btnDelele.UseVisualStyleBackColor = true;
            this.btnDelele.Click += new EventHandler(this.btnDelele_Click);
            this.panel4.Controls.Add(this.btn_QueReng);
            this.panel4.Dock = DockStyle.Right;
            this.panel4.Location = new System.Drawing.Point(0x379, 3);
            this.panel4.Name = "panel4";
            this.panel4.Size = new Size(0x59, 20);
            this.panel4.TabIndex = 2;
            this.btn_QueReng.Dock = DockStyle.Right;
            this.btn_QueReng.Location = new System.Drawing.Point(14, 0);
            this.btn_QueReng.Name = "btn_QueReng";
            this.btn_QueReng.Size = new Size(0x4b, 20);
            this.btn_QueReng.TabIndex = 1;
            this.btn_QueReng.Text = "审 核";
            this.btn_QueReng.UseVisualStyleBackColor = true;
            this.btn_QueReng.Click += new EventHandler(this.btn_QueReng_Click);
            this.panel3.Dock = DockStyle.Bottom;
            this.panel3.Location = new System.Drawing.Point(0, 0x17);
            this.panel3.Name = "panel3";
            this.panel3.Size = new Size(0x3d2, 3);
            this.panel3.TabIndex = 1;
            this.panel2.Dock = DockStyle.Top;
            this.panel2.Location = new System.Drawing.Point(0, 0);
            this.panel2.Name = "panel2";
            this.panel2.Size = new Size(0x3d2, 3);
            this.panel2.TabIndex = 0;
            this.pan_Dock.BackColor = Color.FromArgb(0, 0, 15, 0xff);
            this.pan_Dock.Controls.Add(this.pan_AllPanel);
            this.pan_Dock.Controls.Add(this.pan_DockBottom);
            this.pan_Dock.Controls.Add(this.pan_DockRight);
            this.pan_Dock.Controls.Add(this.pan_DockLeft);
            this.pan_Dock.Dock = DockStyle.Fill;
            this.pan_Dock.Location = new System.Drawing.Point(0, 0x20);
            this.pan_Dock.Name = "pan_Dock";
            this.pan_Dock.Size = new Size(0x3e8, 0x201);
            this.pan_Dock.TabIndex = 5;
            this.pan_AllPanel.BackColor = Color.White;
            this.pan_AllPanel.Controls.Add(this.pan_AllPlanes);
            this.pan_AllPanel.Controls.Add(this.pan_Rights);
            this.pan_AllPanel.Controls.Add(this.pan_Lefts);
            this.pan_AllPanel.Controls.Add(this.pan_Bottoms);
            this.pan_AllPanel.Controls.Add(this.pane_TopT);
            this.pan_AllPanel.Dock = DockStyle.Fill;
            this.pan_AllPanel.Location = new System.Drawing.Point(1, 0);
            this.pan_AllPanel.Name = "pan_AllPanel";
            this.pan_AllPanel.Size = new Size(0x3e6, 0x200);
            this.pan_AllPanel.TabIndex = 3;
            this.pan_AllPlanes.Controls.Add(this.DataGridList);
            this.pan_AllPlanes.Controls.Add(this.PlSearch);
            this.pan_AllPlanes.Controls.Add(this.panel13);
            this.pan_AllPlanes.Controls.Add(this.panel10);
            this.pan_AllPlanes.Controls.Add(this.panel9);
            this.pan_AllPlanes.Controls.Add(this.panel8);
            this.pan_AllPlanes.Controls.Add(this.panel1);
            this.pan_AllPlanes.Controls.Add(this.pan_TopJianGe);
            this.pan_AllPlanes.Dock = DockStyle.Fill;
            this.pan_AllPlanes.Location = new System.Drawing.Point(10, 10);
            this.pan_AllPlanes.Name = "pan_AllPlanes";
            this.pan_AllPlanes.Size = new Size(0x3d2, 0x1ec);
            this.pan_AllPlanes.TabIndex = 4;
            this.DataGridList.AllowUserToAddRows = false;
            this.DataGridList.AllowUserToDeleteRows = false;
            style.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style.BackColor = Color.FromArgb(0xf9, 0xf9, 0xf9);
            this.DataGridList.AlternatingRowsDefaultCellStyle = style;
            this.DataGridList.BackgroundColor = Color.WhiteSmoke;
            this.DataGridList.BorderStyle = BorderStyle.None;
            style2.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style2.BackColor = Color.White;
            style2.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style2.ForeColor = SystemColors.WindowText;
            style2.SelectionBackColor = SystemColors.Highlight;
            style2.SelectionForeColor = SystemColors.HighlightText;
            this.DataGridList.ColumnHeadersDefaultCellStyle = style2;
            this.DataGridList.Columns.AddRange(new DataGridViewColumn[] { this.chk_chkItem, this.DetailsId, this.DetailsType, this.InputDetailsSource, this.CreateMan, this.NotesNum, this.CreateTime, this.BuildMoney, this.IsCheck, this.imgEdit, this.imgDelete });
            style3.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style3.BackColor = SystemColors.Window;
            style3.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style3.ForeColor = SystemColors.ControlText;
            style3.SelectionBackColor = SystemColors.Highlight;
            style3.SelectionForeColor = SystemColors.HighlightText;
            style3.WrapMode = DataGridViewTriState.False;
            this.DataGridList.DefaultCellStyle = style3;
            this.DataGridList.Dock = DockStyle.Fill;
            this.DataGridList.EnableHeadersVisualStyles = false;
            this.DataGridList.GridColor = Color.FromArgb(0xab, 0xb9, 0x9d);
            this.DataGridList.Location = new System.Drawing.Point(0, 0x45);
            this.DataGridList.Name = "DataGridList";
            style4.Alignment = DataGridViewContentAlignment.BottomCenter;
            style4.BackColor = Color.White;
            style4.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style4.ForeColor = SystemColors.WindowText;
            style4.SelectionBackColor = SystemColors.Highlight;
            style4.SelectionForeColor = SystemColors.HighlightText;
            this.DataGridList.RowHeadersDefaultCellStyle = style4;
            style5.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.DataGridList.RowsDefaultCellStyle = style5;
            this.DataGridList.RowTemplate.Height = 0x17;
            this.DataGridList.Size = new Size(0x3d2, 0x17e);
            this.DataGridList.TabIndex = 7;
            this.DataGridList.CellDoubleClick += new DataGridViewCellEventHandler(this.DataGridList_CellDoubleClick);
            this.DataGridList.CellClick += new DataGridViewCellEventHandler(this.DataGridList_CellClick);
            style6.NullValue = false;
            this.chk_chkItem.DefaultCellStyle = style6;
            this.chk_chkItem.FalseValue = "false";
            this.chk_chkItem.Frozen = true;
            this.chk_chkItem.HeaderText = "选项";
            this.chk_chkItem.IndeterminateValue = "";
            this.chk_chkItem.Name = "chk_chkItem";
            this.chk_chkItem.TrueValue = "true";
            this.chk_chkItem.Width = 50;
            this.DetailsId.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.DetailsId.DataPropertyName = "DetailsId";
            style7.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style7.BackColor = Color.White;
            this.DetailsId.DefaultCellStyle = style7;
            this.DetailsId.HeaderText = "编号";
            this.DetailsId.Name = "DetailsId";
            this.DetailsId.ReadOnly = true;
            this.DetailsId.Visible = false;
            this.DetailsType.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.DetailsType.DataPropertyName = "DetailsType";
            style8.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style8.BackColor = Color.White;
            this.DetailsType.DefaultCellStyle = style8;
            this.DetailsType.HeaderText = "明细类型";
            this.DetailsType.Name = "DetailsType";
            this.DetailsType.ReadOnly = true;
            this.InputDetailsSource.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.InputDetailsSource.DataPropertyName = "InputDetailsSource";
            style9.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style9.BackColor = Color.White;
            this.InputDetailsSource.DefaultCellStyle = style9;
            this.InputDetailsSource.HeaderText = "操作账户";
            this.InputDetailsSource.Name = "InputDetailsSource";
            this.InputDetailsSource.ReadOnly = true;
            this.CreateMan.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.CreateMan.DataPropertyName = "CreateMan";
            style10.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style10.BackColor = Color.White;
            this.CreateMan.DefaultCellStyle = style10;
            this.CreateMan.HeaderText = "经手人";
            this.CreateMan.Name = "CreateMan";
            this.CreateMan.ReadOnly = true;
            this.NotesNum.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.NotesNum.DataPropertyName = "NotesNum";
            style11.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style11.BackColor = Color.White;
            this.NotesNum.DefaultCellStyle = style11;
            this.NotesNum.HeaderText = "票据号码";
            this.NotesNum.Name = "NotesNum";
            this.NotesNum.ReadOnly = true;
            this.CreateTime.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.CreateTime.DataPropertyName = "CreateTime";
            style12.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style12.BackColor = Color.White;
            this.CreateTime.DefaultCellStyle = style12;
            this.CreateTime.HeaderText = "操作时间";
            this.CreateTime.Name = "CreateTime";
            this.CreateTime.ReadOnly = true;
            this.BuildMoney.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.BuildMoney.DataPropertyName = "BuildMoney";
            style13.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style13.BackColor = Color.White;
            this.BuildMoney.DefaultCellStyle = style13;
            this.BuildMoney.HeaderText = "产生金额";
            this.BuildMoney.Name = "BuildMoney";
            this.BuildMoney.ReadOnly = true;
            this.IsCheck.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.IsCheck.DataPropertyName = "IsCheck";
            this.IsCheck.HeaderText = "是否审核";
            this.IsCheck.Name = "IsCheck";
            this.imgEdit.HeaderText = "编辑";
            this.imgEdit.Image = Resources.EditBtn;
            this.imgEdit.Name = "imgEdit";
            this.imgEdit.Width = 60;
            this.imgDelete.HeaderText = "删除";
            this.imgDelete.Image = Resources.DeleteBtn;
            this.imgDelete.Name = "imgDelete";
            this.imgDelete.Width = 60;
            this.PlSearch.Controls.Add(this.panel20);
            this.PlSearch.Controls.Add(this.panel21);
            this.PlSearch.Controls.Add(this.panel18);
            this.PlSearch.Controls.Add(this.panel19);
            this.PlSearch.Controls.Add(this.panel16);
            this.PlSearch.Controls.Add(this.panel17);
            this.PlSearch.Controls.Add(this.panel22);
            this.PlSearch.Controls.Add(this.panel23);
            this.PlSearch.Dock = DockStyle.Top;
            this.PlSearch.Location = new System.Drawing.Point(0, 0x2a);
            this.PlSearch.Name = "PlSearch";
            this.PlSearch.Size = new Size(0x3d2, 0x1b);
            this.PlSearch.TabIndex = 6;
            this.PlSearch.Visible = false;
            this.panel20.Controls.Add(this.dateTime_EndTime);
            this.panel20.Controls.Add(this.dataTime_BeginTime);
            this.panel20.Controls.Add(this.label5);
            this.panel20.Dock = DockStyle.Left;
            this.panel20.Location = new System.Drawing.Point(0x2ca, 0);
            this.panel20.Name = "panel20";
            this.panel20.Size = new Size(0x102, 0x1b);
            this.panel20.TabIndex = 15;
            this.dateTime_EndTime.Location = new System.Drawing.Point(0x8a, 2);
            this.dateTime_EndTime.Name = "dateTime_EndTime";
            this.dateTime_EndTime.Size = new Size(0x70, 0x15);
            this.dateTime_EndTime.TabIndex = 3;
            this.dataTime_BeginTime.Location = new System.Drawing.Point(6, 2);
            this.dataTime_BeginTime.Name = "dataTime_BeginTime";
            this.dataTime_BeginTime.Size = new Size(0x70, 0x15);
            this.dataTime_BeginTime.TabIndex = 2;
            this.label5.AutoSize = true;
            this.label5.Location = new System.Drawing.Point(0x7b, 6);
            this.label5.Name = "label5";
            this.label5.Size = new Size(11, 12);
            this.label5.TabIndex = 1;
            this.label5.Text = "-";
            this.panel21.Controls.Add(this.label6);
            this.panel21.Dock = DockStyle.Left;
            this.panel21.Location = new System.Drawing.Point(0x285, 0);
            this.panel21.Name = "panel21";
            this.panel21.Size = new Size(0x45, 0x1b);
            this.panel21.TabIndex = 14;
            this.label6.AutoSize = true;
            this.label6.Location = new System.Drawing.Point(7, 7);
            this.label6.Name = "label6";
            this.label6.Size = new Size(0x3b, 12);
            this.label6.TabIndex = 0;
            this.label6.Text = "操作时间:";
            this.panel18.Controls.Add(this.txt_MaxMoney);
            this.panel18.Controls.Add(this.label4);
            this.panel18.Controls.Add(this.txt_MinMoney);
            this.panel18.Dock = DockStyle.Left;
            this.panel18.Location = new System.Drawing.Point(0x1f3, 0);
            this.panel18.Name = "panel18";
            this.panel18.Size = new Size(0x92, 0x1b);
            this.panel18.TabIndex = 13;
            this.txt_MaxMoney.Location = new System.Drawing.Point(0x4f, 3);
            this.txt_MaxMoney.Name = "txt_MaxMoney";
            this.txt_MaxMoney.Size = new Size(0x37, 0x15);
            this.txt_MaxMoney.TabIndex = 2;
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(0x40, 7);
            this.label4.Name = "label4";
            this.label4.Size = new Size(11, 12);
            this.label4.TabIndex = 1;
            this.label4.Text = "-";
            this.txt_MinMoney.Location = new System.Drawing.Point(6, 3);
            this.txt_MinMoney.Name = "txt_MinMoney";
            this.txt_MinMoney.Size = new Size(0x37, 0x15);
            this.txt_MinMoney.TabIndex = 0;
            this.panel19.Controls.Add(this.label3);
            this.panel19.Dock = DockStyle.Left;
            this.panel19.Location = new System.Drawing.Point(430, 0);
            this.panel19.Name = "panel19";
            this.panel19.Size = new Size(0x45, 0x1b);
            this.panel19.TabIndex = 12;
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(0x1c, 7);
            this.label3.Name = "label3";
            this.label3.Size = new Size(0x23, 12);
            this.label3.TabIndex = 0;
            this.label3.Text = "金额:";
            this.panel16.Controls.Add(this.drp_CompanyAccount);
            this.panel16.Dock = DockStyle.Left;
            this.panel16.Location = new System.Drawing.Point(0x11c, 0);
            this.panel16.Name = "panel16";
            this.panel16.Size = new Size(0x92, 0x1b);
            this.panel16.TabIndex = 11;
            this.drp_CompanyAccount.FormattingEnabled = true;
            this.drp_CompanyAccount.Location = new System.Drawing.Point(3, 3);
            this.drp_CompanyAccount.Name = "drp_CompanyAccount";
            this.drp_CompanyAccount.Size = new Size(140, 20);
            this.drp_CompanyAccount.TabIndex = 0;
            this.panel17.Controls.Add(this.label2);
            this.panel17.Dock = DockStyle.Left;
            this.panel17.Location = new System.Drawing.Point(0xd7, 0);
            this.panel17.Name = "panel17";
            this.panel17.Size = new Size(0x45, 0x1b);
            this.panel17.TabIndex = 10;
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(5, 7);
            this.label2.Name = "label2";
            this.label2.Size = new Size(0x3b, 12);
            this.label2.TabIndex = 0;
            this.label2.Text = "操作帐户:";
            this.panel22.Controls.Add(this.drp_DetailsType);
            this.panel22.Dock = DockStyle.Left;
            this.panel22.Location = new System.Drawing.Point(0x45, 0);
            this.panel22.Name = "panel22";
            this.panel22.Size = new Size(0x92, 0x1b);
            this.panel22.TabIndex = 9;
            this.drp_DetailsType.FormattingEnabled = true;
            this.drp_DetailsType.Location = new System.Drawing.Point(3, 3);
            this.drp_DetailsType.Name = "drp_DetailsType";
            this.drp_DetailsType.Size = new Size(140, 20);
            this.drp_DetailsType.TabIndex = 0;
            this.panel23.Controls.Add(this.lbl_GuestName);
            this.panel23.Dock = DockStyle.Left;
            this.panel23.Location = new System.Drawing.Point(0, 0);
            this.panel23.Name = "panel23";
            this.panel23.Size = new Size(0x45, 0x1b);
            this.panel23.TabIndex = 8;
            this.lbl_GuestName.AutoSize = true;
            this.lbl_GuestName.Location = new System.Drawing.Point(5, 6);
            this.lbl_GuestName.Name = "lbl_GuestName";
            this.lbl_GuestName.Size = new Size(0x3b, 12);
            this.lbl_GuestName.TabIndex = 0;
            this.lbl_GuestName.Text = "明细类型:";
            this.panel13.Dock = DockStyle.Bottom;
            this.panel13.Location = new System.Drawing.Point(0, 0x1c3);
            this.panel13.Name = "panel13";
            this.panel13.Size = new Size(0x3d2, 10);
            this.panel13.TabIndex = 5;
            this.panel10.BackColor = Color.FromArgb(0xca, 0xc9, 0xce);
            this.panel10.Controls.Add(this.panel12);
            this.panel10.Controls.Add(this.panel11);
            this.panel10.Dock = DockStyle.Bottom;
            this.panel10.Location = new System.Drawing.Point(0, 0x1cd);
            this.panel10.Name = "panel10";
            this.panel10.Size = new Size(0x3d2, 0x1a);
            this.panel10.TabIndex = 4;
            this.panel12.Controls.Add(this.lblWhere);
            this.panel12.Dock = DockStyle.Fill;
            this.panel12.Location = new System.Drawing.Point(0, 0);
            this.panel12.Name = "panel12";
            this.panel12.Size = new Size(0x215, 0x1a);
            this.panel12.TabIndex = 1;
            this.lblWhere.AutoSize = true;
            this.lblWhere.Dock = DockStyle.Right;
            this.lblWhere.Location = new System.Drawing.Point(0x215, 0);
            this.lblWhere.Name = "lblWhere";
            this.lblWhere.Size = new Size(0, 12);
            this.lblWhere.TabIndex = 0;
            this.lblWhere.Visible = false;
            this.panel11.Controls.Add(this.navigator_Page);
            this.panel11.Dock = DockStyle.Right;
            this.panel11.Location = new System.Drawing.Point(0x215, 0);
            this.panel11.Name = "panel11";
            this.panel11.Size = new Size(0x1bd, 0x1a);
            this.panel11.TabIndex = 0;
            this.navigator_Page.Dock = DockStyle.Bottom;
            this.navigator_Page.Location = new System.Drawing.Point(0, 8);
            this.navigator_Page.Name = "navigator_Page";
            this.navigator_Page.PageSize = 20;
            this.navigator_Page.RowCount = 0;
            this.navigator_Page.Size = new Size(0x1bd, 0x12);
            this.navigator_Page.TabIndex = 0;
            this.navigator_Page.OnLoadViewStatus += new Navigator.LoadViewStatusHandler(this.navigator_Page_OnLoadViewStatus);
            this.panel9.Dock = DockStyle.Bottom;
            this.panel9.Location = new System.Drawing.Point(0, 0x1e7);
            this.panel9.Name = "panel9";
            this.panel9.Size = new Size(0x3d2, 5);
            this.panel9.TabIndex = 3;
            this.panel8.Dock = DockStyle.Top;
            this.panel8.Location = new System.Drawing.Point(0, 0x22);
            this.panel8.Name = "panel8";
            this.panel8.Size = new Size(0x3d2, 8);
            this.panel8.TabIndex = 2;
            this.pan_TopJianGe.Dock = DockStyle.Top;
            this.pan_TopJianGe.Location = new System.Drawing.Point(0, 0);
            this.pan_TopJianGe.Name = "pan_TopJianGe";
            this.pan_TopJianGe.Size = new Size(0x3d2, 8);
            this.pan_TopJianGe.TabIndex = 0;
            this.pan_Rights.Dock = DockStyle.Right;
            this.pan_Rights.Location = new System.Drawing.Point(0x3dc, 10);
            this.pan_Rights.Name = "pan_Rights";
            this.pan_Rights.Size = new Size(10, 0x1ec);
            this.pan_Rights.TabIndex = 3;
            this.pan_Lefts.Dock = DockStyle.Left;
            this.pan_Lefts.Location = new System.Drawing.Point(0, 10);
            this.pan_Lefts.Name = "pan_Lefts";
            this.pan_Lefts.Size = new Size(10, 0x1ec);
            this.pan_Lefts.TabIndex = 2;
            this.pan_Bottoms.Dock = DockStyle.Bottom;
            this.pan_Bottoms.Location = new System.Drawing.Point(0, 0x1f6);
            this.pan_Bottoms.Name = "pan_Bottoms";
            this.pan_Bottoms.Size = new Size(0x3e6, 10);
            this.pan_Bottoms.TabIndex = 1;
            this.pane_TopT.Dock = DockStyle.Top;
            this.pane_TopT.Location = new System.Drawing.Point(0, 0);
            this.pane_TopT.Name = "pane_TopT";
            this.pane_TopT.Size = new Size(0x3e6, 10);
            this.pane_TopT.TabIndex = 0;
            this.pan_DockBottom.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockBottom.Dock = DockStyle.Bottom;
            this.pan_DockBottom.Location = new System.Drawing.Point(1, 0x200);
            this.pan_DockBottom.Name = "pan_DockBottom";
            this.pan_DockBottom.Size = new Size(0x3e6, 1);
            this.pan_DockBottom.TabIndex = 2;
            this.pan_DockRight.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockRight.Dock = DockStyle.Right;
            this.pan_DockRight.Location = new System.Drawing.Point(0x3e7, 0);
            this.pan_DockRight.Name = "pan_DockRight";
            this.pan_DockRight.Size = new Size(1, 0x201);
            this.pan_DockRight.TabIndex = 1;
            this.pan_DockLeft.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockLeft.Dock = DockStyle.Left;
            this.pan_DockLeft.Location = new System.Drawing.Point(0, 0);
            this.pan_DockLeft.Name = "pan_DockLeft";
            this.pan_DockLeft.Size = new Size(1, 0x201);
            this.pan_DockLeft.TabIndex = 0;
            this.label1.AutoSize = true;
            this.label1.BackColor = Color.FromArgb(0, 0, 15, 0xff);
            this.label1.Font = new System.Drawing.Font("宋体", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0x86);
            this.label1.ForeColor = Color.FromArgb(0x3b, 0x56, 20);
            this.label1.Location = new System.Drawing.Point(6, 8);
            this.label1.Name = "label1";
            this.label1.Size = new Size(0x5b, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "帐户明细管理";
            this.pan_Top.Controls.Add(this.pan_ZhongJian);
            this.pan_Top.Controls.Add(this.pan_TopRight);
            this.pan_Top.Controls.Add(this.pan_TopLeft);
            this.pan_Top.Dock = DockStyle.Top;
            this.pan_Top.Location = new System.Drawing.Point(0, 0);
            this.pan_Top.Name = "pan_Top";
            this.pan_Top.Size = new Size(0x3e8, 0x20);
            this.pan_Top.TabIndex = 4;
            this.pan_ZhongJian.BackgroundImage = Resources.uc_title_2;
            this.pan_ZhongJian.Controls.Add(this.label1);
            this.pan_ZhongJian.Dock = DockStyle.Fill;
            this.pan_ZhongJian.Location = new System.Drawing.Point(0x1f, 0);
            this.pan_ZhongJian.Name = "pan_ZhongJian";
            this.pan_ZhongJian.Size = new Size(0x3c4, 0x20);
            this.pan_ZhongJian.TabIndex = 2;
            this.pan_TopRight.BackgroundImage = Resources.uc_title_1;
            this.pan_TopRight.Dock = DockStyle.Right;
            this.pan_TopRight.Location = new System.Drawing.Point(0x3e3, 0);
            this.pan_TopRight.Name = "pan_TopRight";
            this.pan_TopRight.Size = new Size(5, 0x20);
            this.pan_TopRight.TabIndex = 1;
            this.pan_TopLeft.BackgroundImage = Resources.uc_title;
            this.pan_TopLeft.Dock = DockStyle.Left;
            this.pan_TopLeft.Location = new System.Drawing.Point(0, 0);
            this.pan_TopLeft.Name = "pan_TopLeft";
            this.pan_TopLeft.Size = new Size(0x1f, 0x20);
            this.pan_TopLeft.TabIndex = 0;
            this.saveFileDialog.DefaultExt = "xls";
            this.saveFileDialog.Filter = "报表文件|*.xls";
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(0x3e8, 0x221);
            base.Controls.Add(this.pan_Dock);
            base.Controls.Add(this.pan_Top);
            base.FormBorderStyle = FormBorderStyle.None;
            base.Name = "FrmCompayAccountDetailsList";
            this.Text = "FrmChain";
            base.Load += new EventHandler(this.FrmCompayAccountDetailsList_Load);
            this.panel1.ResumeLayout(false);
            this.panel26.ResumeLayout(false);
            ((ISupportInitialize) this.pic_Help).EndInit();
            this.panel24.ResumeLayout(false);
            this.panel7.ResumeLayout(false);
            this.panel6.ResumeLayout(false);
            this.panel5.ResumeLayout(false);
            this.panel14.ResumeLayout(false);
            this.panel15.ResumeLayout(false);
            this.panel25.ResumeLayout(false);
            this.panel4.ResumeLayout(false);
            this.pan_Dock.ResumeLayout(false);
            this.pan_AllPanel.ResumeLayout(false);
            this.pan_AllPlanes.ResumeLayout(false);
            ((ISupportInitialize) this.DataGridList).EndInit();
            this.PlSearch.ResumeLayout(false);
            this.panel20.ResumeLayout(false);
            this.panel20.PerformLayout();
            this.panel21.ResumeLayout(false);
            this.panel21.PerformLayout();
            this.panel18.ResumeLayout(false);
            this.panel18.PerformLayout();
            this.panel19.ResumeLayout(false);
            this.panel19.PerformLayout();
            this.panel16.ResumeLayout(false);
            this.panel17.ResumeLayout(false);
            this.panel17.PerformLayout();
            this.panel22.ResumeLayout(false);
            this.panel23.ResumeLayout(false);
            this.panel23.PerformLayout();
            this.panel10.ResumeLayout(false);
            this.panel12.ResumeLayout(false);
            this.panel12.PerformLayout();
            this.panel11.ResumeLayout(false);
            this.pan_Top.ResumeLayout(false);
            this.pan_ZhongJian.ResumeLayout(false);
            this.pan_ZhongJian.PerformLayout();
            base.ResumeLayout(false);
        }

        private void InitPage()
        {
            this.navigator_Page.PageSize = PublicAppliction.PageCount;
            this.navigator_Page.DataContainer = this.DataGridList;
            this.navigator_Page.Init();
        }

        private void navigator_Page_OnLoadViewStatus()
        {
            this.DataGrid_bind();
            this.navigator_Page.PageSize = PublicAppliction.PageCount;
            this.navigator_Page.DataContainer = this.DataGridList;
            this.navigator_Page.DataBind();
        }

        private void pic_Help_Click(object sender, EventArgs e)
        {
            new FrmHelp(0x10).Show();
        }
    }
}

